package com.java2207.group1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author AL 2022/7/25  17:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Lunch {

    //午餐id
    private Integer id;

    //午餐类型
    private String name;

    //时间
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;

    //午餐图片
    private String pic;

    //特殊午餐
    private String special;
}
